home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ROMDefs.a < prev    next >
Text File  |  1996-05-01  |  10KB  |  245 lines

  1. ;
  2. ;    File:        ROMDefs.a
  3. ;
  4. ;    Contains:    NuBus card ROM Definitions.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__ROMDEFS__') = 'UNDEFINED' THEN
  19. __ROMDEFS__ SET 1
  20.  
  21.  
  22. appleFormat                        EQU        1                    ;Format of Declaration Data (IEEE will assign real value)
  23. romRevision                        EQU        1                    ;Revision of Declaration Data Format
  24. romRevRange                        EQU        9                    ;Revision of Declaration Data Format [1..9]
  25. testPattern                        EQU        1519594439            ;FHeader long word test pattern
  26. sCodeRev                        EQU        2                    ;Revision of code (For sExec)
  27. sExec2                            EQU        2
  28. sCPU68000                        EQU        1                    ;CPU type = 68000
  29. sCPU68020                        EQU        2                    ;CPU type = 68020
  30. sCPU68030                        EQU        3                    ;CPU type = 68030
  31. sCPU68040                        EQU        4                    ;CPU type = 68040
  32. sMacOS68000                        EQU        1                    ;Mac OS, CPU type = 68000
  33. sMacOS68020                        EQU        2                    ;Mac OS, CPU type = 68020
  34. sMacOS68030                        EQU        3                    ;Mac OS, CPU type = 68030
  35. sMacOS68040                        EQU        4                    ;Mac OS, CPU type = 68040
  36. board                            EQU        0                    ;Board sResource - Required on all boards
  37. displayVideoAppleTFB            EQU        16843009            ;Video with Apple parameters for TFB card.
  38. displayVideoAppleGM                EQU        16843010            ;Video with Apple parameters for GM card.
  39. networkEtherNetApple3Com        EQU        33620225            ;Ethernet with apple parameters for 3-Comm card.
  40. testSimpleAppleAny                EQU        -2147417856            ;A simple test sResource.
  41. endOfList                        EQU        255                    ;End of list
  42. defaultTO                        EQU        100                    ;100 retries.
  43.  
  44.                                                             ; sResource flags for sRsrc_Flags 
  45. fOpenAtStart                    EQU        1                    ; set => open the driver at start time, else do not 
  46. f32BitMode                        EQU        2                    ; set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) 
  47.  
  48. sRsrcType                        EQU        1                    ;Type of sResource
  49. sRsrcName                        EQU        2                    ;Name of sResource
  50. sRsrcIcon                        EQU        3                    ;Icon
  51. sRsrcDrvrDir                    EQU        4                    ;Driver directory
  52. sRsrcLoadDir                    EQU        5                    ;Load directory
  53. sRsrcBootRec                    EQU        6                    ;sBoot record
  54. sRsrcFlags                        EQU        7                    ;sResource Flags
  55. sRsrcHWDevId                    EQU        8                    ;Hardware Device Id
  56. minorBaseOS                        EQU        10                    ;Offset to base of sResource in minor space.
  57. minorLength                        EQU        11                    ;Length of sResource's address space in standard slot space.
  58. majorBaseOS                        EQU        12                    ;Offset to base of sResource in Major space.
  59. majorLength                        EQU        13                    ;Length of sResource in super slot space.
  60. sRsrcTest                        EQU        14                    ;sBlock diagnostic code
  61. sRsrccicn                        EQU        15                    ;Color icon
  62. sRsrcicl8                        EQU        16                    ;8-bit (indexed) icon
  63. sRsrcicl4                        EQU        17                    ;4-bit (indexed) icon
  64. sDRVRDir                        EQU        16                    ;sDriver directory
  65. sGammaDir                        EQU        64                    ;sGamma directory
  66. sRsrcVidNames                    EQU        65                    ;Video mode name directory
  67. sRsrcDock                        EQU        80                    ;spID for Docking Handlers
  68. sDiagRec                        EQU        85                    ;spID for board diagnostics
  69. sVidAuxParams                    EQU        123                    ;more video info for Display Manager -- timing information
  70. sDebugger                        EQU        124                    ;DatLstEntry for debuggers indicating video anamolies
  71. sVidAttributes                    EQU        125                    ;video attributes data field (optional,word)
  72. fLCDScreen                        EQU        0                    ; bit 0 - when set is LCD, else is CRT
  73. fBuiltInDisplay                    EQU        1                    ;      1 - when set is built-in (in the box) display, else not
  74. fDefaultColor                    EQU        2                    ;      2 - when set display prefers multi-bit color, else gray
  75. fActiveBlack                    EQU        3                    ;      3 - when set black on display must be written, else display is naturally black
  76. fDimMinAt1                        EQU        4                    ;      4 - when set should dim backlight to level 1 instead of 0
  77. fBuiltInDetach                    EQU        4                    ;      4 - when set is built-in (in the box), but detaches
  78. sVidParmDir                        EQU        126
  79. sBkltParmDir                    EQU        140                    ;directory of backlight tables
  80. stdBkltTblSize                    EQU        36                    ;size of ``standard'' 0..31-entry backlight table
  81. sSuperDir                        EQU        254
  82. ;  =======================================================================    
  83. ;  sResource types                                                            
  84. ;  =======================================================================    
  85.  
  86. catBoard                        EQU        $0001                ;Category for board types.
  87. catTest                            EQU        $0002                ;Category for test types -- not used much.
  88. catDisplay                        EQU        $0003                ;Category for display (video) cards.
  89. catNetwork                        EQU        $0004                ;Category for Networking cards.
  90. catScanner                        EQU        $0008                ;scanners bring in data somehow
  91. catCPU                            EQU        $000A
  92. catIntBus                        EQU        $000C
  93. catProto                        EQU        $0011
  94. catDock                            EQU        $0020                ;<Type>
  95. typeBoard                        EQU        $0000
  96. typeApple                        EQU        $0001
  97. typeVideo                        EQU        $0001
  98. typeEtherNet                    EQU        $0001
  99. typeStation                        EQU        $0001
  100. typeDesk                        EQU        $0002
  101. typeTravel                        EQU        $0003
  102. typeDSP                            EQU        $0004
  103. typeXPT                            EQU        $000B
  104. typeSIM                            EQU        $000C
  105. typeDebugger                    EQU        $0100
  106. type68000                        EQU        $0002
  107. type68020                        EQU        $0003
  108. type68030                        EQU        $0004
  109. type68040                        EQU        $0005
  110. type601                            EQU        $0025
  111. type603                            EQU        $002E
  112. typeAppleII                        EQU        $0015                ;Driver Interface : <id.SW>
  113. drSwMacCPU                        EQU        0
  114. drSwAppleIIe                    EQU        $0001
  115. drSwApple                        EQU        1                    ;To ask for or define an Apple-compatible SW device.
  116. drSwMacsBug                        EQU        $0104
  117. drSwDepewEngineering            EQU        $0101                ;Driver Interface : <id.SW><id.HW>
  118. drHwTFB                            EQU        1                    ;HW ID for the TFB (original Mac II) video card.
  119. drHw3Com                        EQU        1                    ;HW ID for the Apple EtherTalk card.
  120. drHwBSC                            EQU        3
  121. drHwGemini                        EQU        1
  122. drHwDeskBar                        EQU        1
  123. drHwATT3210                        EQU        $0001
  124. drHwBootBug                        EQU        $0100
  125. drHwMicroDock                    EQU        $0100                ; video hardware id's  - <catDisplay><typVideo>
  126. drHwRBV                            EQU        $0018
  127. drHwJMFB                        EQU        $0019
  128. drHwElsie                        EQU        $001A
  129. drHwTim                            EQU        $001B
  130. drHwDAFB                        EQU        $001C
  131. drHwGSC                            EQU        $001E
  132. drHwDAFBPDS                        EQU        $001F
  133. drHWVSC                            EQU        $0020
  134. drHwApollo                        EQU        $0021
  135. drHwSonora                        EQU        $0022
  136. drHwReserved2                    EQU        $0023
  137. drHwColumbia                    EQU        $0024
  138. drHwCivic                        EQU        $0025
  139. drHWPBLCD                        EQU        $0027
  140. drHWCSC                            EQU        $0028
  141. drHwJET                            EQU        $0029
  142. drHWMEMCjr                        EQU        $002A
  143. drHwValkyrie                    EQU        $002E
  144. drHwKeystone                    EQU        $002F
  145. drHWATI                            EQU        $0055                ; other drHW id's for built-in functions
  146. drHwSonic                        EQU        $0110
  147. drHwMace                        EQU        $0114
  148. drHwDblExp                        EQU        $0001                ; CPU board IDs - <catBoard> <typBoard> <0000> <0000>
  149. MIIBoardId                        EQU        $0010                ;Mac II Board ID
  150. ciVidBoardID                    EQU        $001F                ;Aurora25 board ID
  151. CX16VidBoardID                    EQU        $0020                ;Aurora16 board ID
  152. MIIxBoardId                        EQU        $0021                ;Mac IIx Board ID
  153. SE30BoardID                        EQU        $0022                ;Mac SE/30 Board ID
  154. MIIcxBoardId                    EQU        $0023                ;Mac IIcx Board ID
  155. MIIfxBoardId                    EQU        $0024                ;F19 board ID
  156. EricksonBoardID                    EQU        $0028
  157. ElsieBoardID                    EQU        $0029
  158. TIMBoardID                        EQU        $002A
  159. EclipseBoardID                    EQU        $002B
  160. SpikeBoardID                    EQU        $0033
  161. DBLiteBoardID                    EQU        $0035
  162. ZydecoBrdID                        EQU        $0036
  163. ApolloBoardID                    EQU        $0038
  164. PDMBrdID                        EQU        $0039
  165. VailBoardID                        EQU        $003A
  166. WombatBrdID                        EQU        $003B
  167. ColumbiaBrdID                    EQU        $003C
  168. CycloneBrdID                    EQU        $003D
  169. CompanionBrdID                    EQU        $003E
  170. DartanianBoardID                EQU        $0040
  171. DartExtVidBoardID                EQU        $0046
  172. HookBoardID                        EQU        $0047                ;Hook internal video board ID
  173. EscherBoardID                    EQU        $004A                ;Board ID for Escher (CSC)
  174. POBoardID                        EQU        $004D                ;Board ID for Primus/Optimus/Aladdin
  175. TempestBrdID                    EQU        $0050                ;Non-official Board ID for Tempest
  176. BlackBirdBdID                    EQU        $0058                ;Board ID for BlackBird
  177. BBExtVidBdID                    EQU        $0059                ;Board ID for BlackBird built-in external video
  178. YeagerBoardID                    EQU        $005A                ;Board ID for Yeager
  179. BBEtherNetBdID                    EQU        $005E                ;Board ID for BlackBird Ethernet board
  180. TELLBoardID                        EQU        $0065                ;Board ID for TELL (Valkyrie)
  181. MalcolmBoardID                    EQU        $065E                ;Board ID for Malcolm
  182. AJBoardID                        EQU        $065F                ;Board ID for AJ
  183. M2BoardID                        EQU        $0660                ;Board ID for M2
  184. OmegaBoardID                    EQU        $0661                ;Board ID for Omega
  185.                                                             ; other board IDs
  186. BoardIDDblExp                    EQU        $002F
  187. DAFBPDSBoardID                    EQU        $0037
  188. MonetBoardID                    EQU        $0048
  189. SacSONIC16BoardID                EQU        $004E
  190. SacSONIC32BoardID                EQU        $004F                ; CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>
  191. drHWMacII                        EQU        $0001                ;Mac II hw ID
  192. drHwMacIIx                        EQU        $0002                ;Mac IIx hw ID
  193. drHWSE30                        EQU        $0003                ;Mac SE/30 hw ID
  194. drHwMacIIcx                        EQU        $0004                ;Mac IIcx hw ID
  195. drHWMacIIfx                        EQU        $0005                ;Mac IIfx hw ID
  196. drHWF19                            EQU        $0005                ;F19 hw ID
  197. sBlockTransferInfo                EQU        20                    ;general slot block xfer info
  198. sMaxLockedTransferCount            EQU        21                    ;slot max. locked xfer count
  199. boardId                            EQU        32                    ;Board Id
  200. pRAMInitData                    EQU        33                    ;sPRAM init data
  201. primaryInit                        EQU        34                    ;Primary init record
  202. timeOutConst                    EQU        35                    ;Time out constant
  203. vendorInfo                        EQU        36                    ;Vendor information List. See Vendor List, below
  204. boardFlags                        EQU        37                    ;Board Flags
  205. secondaryInit                    EQU        38                    ;Secondary init record/code
  206.                                                             ; The following Id's are associated with all CPU sResources.
  207. MajRAMSp                        EQU        129                    ;ID of Major RAM space.
  208. MinROMSp                        EQU        130                    ;ID of Minor ROM space.
  209. vendorId                        EQU        1                    ;Vendor Id
  210. serialNum                        EQU        2                    ;Serial number
  211. revLevel                        EQU        3                    ;Revision level
  212. partNum                            EQU        4                    ;Part number
  213. date                            EQU        5                    ;Last revision date of the card
  214.  
  215. testByte                        EQU        32                    ;Test byte.
  216. testWord                        EQU        33                    ;0021
  217. testLong                        EQU        34                    ;Test Long.
  218. testString                        EQU        35                    ;Test String.
  219. ;  sResource List. Category: Display        Type: Video 
  220. ;  The following Id's are common to all Mode sResources in Display_Video 
  221. ;  functional sResources. 
  222.  
  223. mBlockTransferInfo                EQU        5                    ; slot block xfer info PER MODE 
  224. mMaxLockedTransferCount            EQU        6                    ; slot max. locked xfer count PER MODE 
  225. ;*************************************************************
  226. ;Macros
  227. ;*************************************************************
  228. ;=============================================================
  229. ; Offset List Entry
  230. ;=============================================================
  231.                   MACRO
  232.                   OSLstEntry  &Id,&Offset
  233.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  234.                   ENDM
  235.  
  236. ;=============================================================
  237. ; Data List Entry
  238. ;=============================================================
  239.                   MACRO
  240.                   DatLstEntry &Id,&Data
  241.                   DC.L        (&Id<<24)+&Data
  242.                   ENDM
  243.     ENDIF ; __ROMDEFS__ 
  244.  
  245.